package com.zynn.common.pojo.dto.event;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.Date;

/**
 * 动态点赞表
 *
 * @author 刘天元
 * @date 2018-6-10 09:42:29
 **/
@Data
public class EventLikeDTO {

    @JsonSerialize(using=ToStringSerializer.class)
    private Long id;

    /**
     * 动态id
     */
    @JsonSerialize(using=ToStringSerializer.class)
    private Long eventId;

    /**
     * 点赞人的用户id
     */
    @JsonSerialize(using=ToStringSerializer.class)
    private Long likeUserId;

    /**
     * 点赞人的用户昵称
     */
    private String likeUserNickName;

    /**
     * 点赞时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date likeTime;

    /**
     * 是否有效,1有效,0无效
     */
    @JsonIgnore
    private Integer isValid;

}